wayland: Stop calling frontend surface api
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Feb 2020 14:51:26 +0000 (09:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:35:55 +0000 (19:35 -0400)
This is an unnecessary vfunc roundtrip, and the
frontend api is going away shortly.

gdk/wayland/gdksurface-wayland.c

index e50c39991a9cffe11c270cbeae8a5a5e19ce5bca..526b07f5670768ff02bd7c9e1fd9b186f390bc39 100644 (file)
@@ -2634,6 +2634,11 @@ is_fallback_relayout_possible (GdkSurface *surface)
   return TRUE;
 }
 
+static gboolean gdk_wayland_surface_present_popup (GdkSurface     *surface,
+                                                   int             width,
+                                                   int             height,
+                                                   GdkPopupLayout *layout);
+
 static void
 queue_relayout_fallback (GdkSurface     *surface,
                          GdkPopupLayout *layout)
@@ -2644,10 +2649,10 @@ queue_relayout_fallback (GdkSurface     *surface,
     return;
 
   gdk_wayland_surface_hide_surface (surface);
-  gdk_surface_present_popup (surface,
-                             impl->popup.unconstrained_width,
-                             impl->popup.unconstrained_height,
-                             layout);
+  gdk_wayland_surface_present_popup (surface,
+                                     impl->popup.unconstrained_width,
+                                     impl->popup.unconstrained_height,
+                                     layout);
 }
 
 static void